package pswvclass.pswvandroid2.com.kwords.share;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;

import pswvclass.pswvandroid2.R;

/**
 * Created by Administrator on 2018/11/4.
 */
public class ShareSee extends Fragment {
    private String tag = "KwordSee";
    private EditText kWords;
    private EditText content;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {

        return inflater.inflate(R.layout.pswv_share_kword_see, null);
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        Bundle bundle = getArguments();
        if (bundle != null) {
            String kWords1 = bundle.getString("kWords");
            String content1 = bundle.getString("content");
            kWords = (EditText) getView().findViewById(R.id.see_kwords);
            content = (EditText) getView().findViewById(R.id.see_content);
            kWords.setText(kWords1);
            content.setText(content1);
        }
    }
}
